package com.buka.book.entity;

import java.time.LocalDateTime;

public class Book {

    private int id;
    private String bookName;
    private String bookNo;
    private int count;
    private LocalDateTime createTime;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getBookNo() {
        return bookNo;
    }

    public void setBookNo(String bookNo) {
        this.bookNo = bookNo;
    }


    public Book(){

    }

    public Book(int id,String bookName, int count){
        this.createTime = LocalDateTime.now();
        this.bookName = bookName;
        this.id = id;
        this.count = count;
    }

    public Book(String bookNo,String bookName, int count){
        this.createTime = LocalDateTime.now();
        this.bookName = bookName;
        this.bookNo = bookNo;
        this.count = count;
    }

}
